package com.chinaunicom.bigcustomer.service;

import java.util.List;

import com.chinaunicom.bigcustomer.dto.GradeRuleDto;
import com.chinaunicom.bigcustomer.model.GradeRule;

public interface IGradeRuleService {
    int deleteByPrimaryKey(Integer nRuleno);

    int insert(GradeRuleDto dto);

    int insertSelective(GradeRule record);

    GradeRuleDto selectByPrimaryKey(Integer nRuleno);

    int updateByPrimaryKeySelective(GradeRule record);

    int updateByPrimaryKey(int id);
    
    List<GradeRuleDto> query(GradeRuleDto gradeRule);
    
    List<GradeRuleDto> queryByBrand(String vBrandname);
    
	List<GradeRuleDto> queryByGrade(String vGrade);
	
	List<GradeRuleDto> queryByName(GradeRuleDto dto);

	int lockRuleByPrimaryKey(int id);

	int unlockRuleByPrimaryKey(int id);

	int updateById(GradeRuleDto dto);
}
